import request from "@/utils/request.js";

// 获取所有品牌列表
export function requestTrademarkList() {
  return request.get(`/admin/product/baseTrademark/getTrademarkList`);
}

// 获取分页品牌列表
export function requestTrademarkListByPage(page, limit) {
  return request.get(`/admin/product/baseTrademark/${page}/${limit}`);
}

// 添加品牌
export function requestSaveBaseTrademark(data) {
  return request.post(`admin/product/baseTrademark/save`, data);
}

//编辑品牌
export function requestUpdateBaseTrademark(data) {
  return request.put(`/admin/product/baseTrademark/update`, data);
}

// 删除品牌
export function requestDeleteBaseTrademark(id) {
  return request.delete(`/admin/product/baseTrademark/remove/${id}`);
}
